package parserXMI;

public enum Visibility {
	PUBLIC("public"), 
	PRIVATE("private"),
	PROTECTED ("protected");
	
	private final String visibility; 

	Visibility(String visibility) {
		this.visibility = visibility;
	}
	
	public String visibility(){
		return visibility;
	}
	
	public static Visibility contains(String test) {
	    for (Visibility t : Visibility.values()) {
	        if (t.name().equals(test)) {
	            return t;
	        }
	    }
	    
	    return Visibility.PUBLIC;
	}
	
}
